package com.heima.model.user.pojos;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 用户行为 - 关注与取消关注
 * @author chenshan
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Document("user_relation")
public class UserRelation implements Serializable {
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 文章id
     */
    private Long articleId;
    /**
     * 文章作者id
     */
    private Integer authorId;
    /**
     * 0 关注 1 取消
     */
    private Integer operation;
}
